home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / g_man / cat3 / OpenGL-ftn / fglucylinder.z / fglucylinder
Text File  |  1998-10-20  |  4KB  |  67 lines

  1.  
  2.  
  3.  
  4. ffffgggglllluuuuCCCCyyyylllliiiinnnnddddeeeerrrr((((3333GGGG))))               OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee               ffffgggglllluuuuCCCCyyyylllliiiinnnnddddeeeerrrr((((3333GGGG))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ffffgggglllluuuuCCCCyyyylllliiiinnnnddddeeeerrrr - draw a cylinder
  10.  
  11.  
  12. FFFFOOOORRRRTTTTRRRRAAAANNNN SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
  13.      SUBROUTINE ffffgggglllluuuuCCCCyyyylllliiiinnnnddddeeeerrrr( CHARACTER*8 _q_u_a_d,
  14.                               REAL*4 _b_a_s_e,
  15.                               REAL*4 _t_o_p,
  16.                               REAL*4 _h_e_i_g_h_t,
  17.                               INTEGER*4 _s_l_i_c_e_s,
  18.                               INTEGER*4 _s_t_a_c_k_s )
  19.  
  20.  
  21. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  22.      _q_u_a_d    Specifies the quadrics object (created with ffffgggglllluuuuNNNNeeeewwwwQQQQuuuuaaaaddddrrrriiiicccc).
  23.  
  24.      _b_a_s_e    Specifies the radius of the cylinder at _z = 0.
  25.  
  26.      _t_o_p     Specifies the radius of the cylinder at _z = _h_e_i_g_h_t.
  27.  
  28.      _h_e_i_g_h_t  Specifies the height of the cylinder.
  29.  
  30.      _s_l_i_c_e_s  Specifies the number of subdivisions around the _z axis.
  31.  
  32.      _s_t_a_c_k_s  Specifies the number of subdivisions along the _z axis.
  33.  
  34.  
  35. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  36.      ffffgggglllluuuuCCCCyyyylllliiiinnnnddddeeeerrrr draws a cylinder oriented along the _z axis.  The base of the
  37.      cylinder is placed at  _z = 0, and the top at z=height.  Like a sphere, a
  38.      cylinder is subdivided around the _z axis into slices, and along the _z
  39.      axis into stacks.
  40.  
  41.      Note that if _t_o_p is set to zero, then this routine will generate a cone.
  42.  
  43.      If the orientation is set to GGGGLLLLUUUU____OOOOUUUUTTTTSSSSIIIIDDDDEEEE (with ffffgggglllluuuuQQQQuuuuaaaaddddrrrriiiiccccOOOOrrrriiiieeeennnnttttaaaattttiiiioooonnnn),
  44.      then any generated normals point away from the _z axis.  Otherwise, they
  45.      point toward the _z axis.
  46.  
  47.      If texturing is turned on (with ffffgggglllluuuuQQQQuuuuaaaaddddrrrriiiiccccTTTTeeeexxxxttttuuuurrrreeee), then texture
  48.      coordinates are generated so that _t ranges linearly from 0.0 at _z = 0 to
  49.      1.0 at _z = _h_e_i_g_h_t, and _s ranges from 0.0 at the +_y axis, to 0.25 at the
  50.      +_x axis, to 0.5 at the -_y axis, to 0.75 at the -_x axis, and back to 1.0
  51.      at the +_y axis.
  52.  
  53.  
  54. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  55.      ffffgggglllluuuuDDDDiiiisssskkkk, ffffgggglllluuuuNNNNeeeewwwwQQQQuuuuaaaaddddrrrriiiicccc, ffffgggglllluuuuPPPPaaaarrrrttttiiiiaaaallllDDDDiiiisssskkkk, ffffgggglllluuuuQQQQuuuuaaaaddddrrrriiiiccccTTTTeeeexxxxttttuuuurrrreeee, ffffgggglllluuuuSSSSpppphhhheeeerrrreeee
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.